<template>
  <el-select :value="value" placeholder="请选择科目" @change="handleInput">
    <el-option
      v-for="item in options"
      :key="item.value"
      :label="item.label"
      :value="item.value"
    />
  </el-select>
</template>

<script>
export default {
  name: 'CourseSelect',
  props: {
    value: {
      type: [String, Number, Object],
      required: true
    }
  },
  data() {
    return {
      options: [{
        value: '1',
        label: '高一'
      }, {
        value: '2',
        label: '高二'
      }, {
        value: '3',
        label: '高三'
      }
      ]
    }
  },
  methods: {
    handleInput(value) {
      this.$emit('input', value)
    }
  }
}
</script>

<style scoped>

</style>
